package com.bjpowernode.mapper;

import com.bjpowernode.annotation.DataScope;
import com.bjpowernode.entity.TCustomer;
import com.bjpowernode.query.BaseQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface TCustomerMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TCustomer record);

    int insertSelective(TCustomer record);

    TCustomer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TCustomer record);

    int updateByPrimaryKey(TCustomer record);

    @DataScope(tableAlias = "tc", tableFeild = "owner_id")
    List<TCustomer> selectCustomerPage(BaseQuery baseQuery);

    TCustomer selectById(Integer customerId);

    @DataScope(tableAlias = "tc", tableFeild = "owner_id")
    List<TCustomer> selectCustomerDetailList(BaseQuery baseQuery, List<String> idList);

    Integer selectTotalCustomerCount();
}